#include "common.h"

#include <sys/stat.h>
#include <fcntl.h>

int main()
{
	int fd = open("log.txt", O_RDWR | O_CREAT | O_TRUNC, 0755);

	dup2(fd, 1);

	printf("'print to log.txt'\n");

	return 0;
}
